package webserver.bank;

import java.lang.reflect.InvocationTargetException;

public interface GenericClassCaller
{

	/**
	 * @param object
	 *            the object which the object should be called
	 * @param method
	 *            the method which should be called at the object
	 * @param parameters
	 *            the parameters for the method
	 * @param parameterTypes
	 *            the parameter types
	 * @return the same as the method called
	 * @throws ClassNotFoundException
	 * @throws SecurityException
	 * @throws NoSuchMethodException
	 * @throws IllegalArgumentException
	 * @throws IllegalAccessException
	 * @throws InvocationTargetException
	 */
	Object callClass(Object object, String method, Object parameters[],
			String[] parameterTypes) throws ClassNotFoundException,
			SecurityException, NoSuchMethodException, IllegalArgumentException,
			IllegalAccessException, InvocationTargetException;
}
